package app.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import app.model.login.LoginUser;
import app.service.MyService;
import base.JsonResult;

@Controller
@RequestMapping("/my")
public class MyController {
	
	@Resource
	private MyService myService;
	
	@ResponseBody
	@RequestMapping("/main.do")
	public JsonResult main(LoginUser loginUser){
		myService.save(loginUser);
		return new JsonResult("操作成功");
	}

}
